//
//  FMDBDishManager.h
//  takeout
//
//  Created by Mac on 12-4-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "Dish.h"
#import "DishCategory.h"
@interface FMDBDishManager : NSObject
//插入本地菜系
-(void) insertDishCategories:(FMDatabase *)db dishCategories:(DishCategory *)dishCategory supplierid:(NSInteger)supplierid;
//插入本地菜品
-(void) insertDishes:(FMDatabase *)db dishCategories:(Dish *)dish;
//查询本地菜系
-(void) selectDishCategory;
//查询本地菜品
-(void) selectDish;
//删除菜品
-(void) deleteDish:(NSString *)dishId;
//删除菜系
-(void) deleteDishCategory:(NSString *)DishCategoryId;
-(NSArray *)getAllDishesBySupIdFromLoc:(NSString *)supplierId;
-(void)insertAllDishesBySupIdToLoc:(NSArray *)dishCategories supplierid:(NSInteger)supplierid;

@end
